package com.heima.feign.config;

import feign.Logger;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * feign客户端配置类
 */
@Configuration
public class DefaultFeignConfiguration {
    @Bean
    public Logger.Level logLevel() {
        return Logger.Level.NONE;
    }

    @Bean
    public RequestInterceptor requestInterceptor() {
        return new MyFeignInterceptor();
    }
}
